<link rel="stylesheet" href="assets/admin/css/compiled/new-user.css" type="text/css" media="screen"/>
<!-- main container -->
<div class="content">

    <div class="container-fluid">
        <div id="pad-wrapper" class="new-user">
            <div class="row-fluid header">
                <h3>添加新管理员</h3>
            </div>

            <div class="row-fluid form-wrapper">
                <!-- left column -->
                <div class="span9 with-sidebar">
                    <div class="container">
                        <?php if (Yii::$app->session->hasFlash('info')) {
                        echo Yii::$app->session->getFlash('info');
                        } ?>
                        <?php $form = \yii\widgets\ActiveForm::begin([
                            'options'     => ['class' => 'new_user_form inline-input'],
                            'fieldConfig' => [
//                                'template' => '{input}{error}'
                                'template' => '<div class="span12 field-box">{label}{input}</div>{error}'
                            ]
                        ]); ?>
                        <!--                        <form class="new_user_form inline-input"/>-->
                        <!--                        <div class="span12 field-box">-->
                        <!--                            <label>管理员账号：</label>-->
                        <!--                            <input class="span9" type="text"/>-->
                        <?php echo $form->field($model, 'adminuser')->textInput(['class' => 'span9']); ?>
                        <!--                        </div>-->

                        <!--                        <div class="span12 field-box">-->
                        <!--                            <label>电子邮箱：</label>-->
                        <!--                            <input class="span9" type="text"/>-->
                        <?php echo $form->field($model, 'adminemail')->textInput(['class' => 'span9']); ?>
                        <!--                        </div>-->
                        <!--                        <div class="span12 field-box">-->
                        <!--                            <label>密码：</label>-->
                        <!--                            <input class="span9" type="text"/>-->
                        <?php echo $form->field($model, 'adminpass')->passwordInput(['class' => 'span9']); ?>
                        <!--                        </div>-->
                        <!--                        <div class="span12 field-box">-->
                        <!--                            <label>确认密码：</label>-->
                        <?php echo $form->field($model, 'repass')->passwordInput(['class' => 'span9']); ?>
                        <!--                            <input class="span9" type="text"/>-->
                        <!--                        </div>-->

                        <div class="span11 field-box actions">
                            <!--                            <input type="button" class="btn-glow primary" value="创建"/>-->
                            <?php echo \yii\helpers\Html::submitButton('创建', ['class' => 'btn-glow primary']) ?>
                            <span>或者</span>
                            <?php echo \yii\helpers\Html::resetButton('取消', ['class' => 'reset']) ?>
                            <!--                            <input type="reset" value="取消" class="reset"/>-->
                        </div>

                        <!--                        </form>-->
                        <?php \yii\widgets\ActiveForm::end(); ?>
                    </div>
                </div>

                <!-- side right column -->
                <div class="span3 form-sidebar pull-right">

                    <div class="alert alert-info hidden-tablet">
                        <i class="icon-lightbulb pull-left"></i>
                        请在左侧填写管理员相关信息，包括管理员账号，电子邮箱，以及密码
                    </div>
                    <h6>重要提示：</h6>
                    <p>管理员可以管理后台功能模块</p>
                    <p>请谨慎添加</p>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<!-- end main container -->
